import request from "../../../utils/request.js";

const state = {
	classificationList:[], //双行滚动区域
}
const getters = {}
const mutations = {
	getClassifiMutation(state,payload){
		state.classificationList = payload
		console.log(state.classificationList)
	}
}
const actions = {
	async getClassification({commit}){
		const result = await request("/classificationList")
		commit("getClassifiMutation",result)
	}
}

export default {
	namespaced: true, // 命名空间
	state,
	getters,
	mutations,
	actions
}
